package edu.eam.paii.proyecto.entidades;

import java.io.Serializable;
import javax.persistence.*;

/**
 * Entity implementation class for Entity: Predio
 *
 */
@Entity


/**
 * Name quevery 
 */
@NamedQueries(value = { @NamedQuery(name="Predio.listar", 
		query="select P from Predio P"),
		
	
})
public class Predio implements Serializable {

	@Id
	private int nro_Predio;
	private double valor_Predio;
		
	@OneToOne
	@JoinColumn(name = "id_Direccion", unique = true, nullable = true, updatable = false)
	private Direccion direccionPredio;
	public Predio() {
		super();
	}
   
}
